This folder contains python, shell and livecode server scripts.
Note: the current python and livecodeserver scripts pose a large security risk if blindly installed on a server.
You can freely remove the entire cgi-bin folder as Webtalk will continue to function without it.
Doing so will prevent the running of shell scripts, livecode server scripts, and python scripts (through the cgi-bin method).

What's this 'cgi-bin' method you speak of?
Simply put, it's a way of running shell scripts (and others), which sidesteps the browser security model.

To do that:
open a terminal and cd (change directory) to the location of the webtalk folder.
For example:
cd '/home/user/dev/webtalk'
Now, we should make sure that the "shell.py" file is executable:
chmod +x ./cgi-bin/shell.py
Great, now we are ready to start webtalk in the right manner (locally-hosted). To do that, we run:
python3 -m http.server --cgi 8080
This will take a few moments, but you should see something along the lines of:
Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ...
(where 0.0.0.0 is your local IP address).
You should now be able to go to this address in a browser:
http://0.0.0.0:8080/
Once webtalk loads, run this in a message box:
set the allowshell to true
You'll get a confirmation message:
"Are you sure you want to enable shell mode? Doing so will allow this program to communicate directly with the OS on a lower level, but could also allow for malicious scripts to run."
This message is intentional and is by design. It's there to make it plain that shell mode is about to be turned on. (I didn't want shell commands to be run without the user specifically agreeing to it).
If you choose "leave it off", then shell commands are disabled, and you'll need to refresh the page to get this prompt again.
If you choose "Enable", then this allows subsequent shell commands such as:
put shell("ls -a ~/Downloads/")

Troubleshooting:
If you see a message returned such as:
Error: CGI script returned status 403
This means the "shell.py" isn't executable, and you need to either run: chmod +x ./cgi-bin/shell.py (or right-click and choose "allow executing" -- or similar, depending on OS).
